package com.lai.note.service;

import androidx.room.Delete;

import com.lai.note.dto.ResponseResult;

import retrofit2.Call;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface NoteService {

    @POST("user/note/newNote.action")
    Call<ResponseResult> addNewNote(@Query("title") String title,
                                    @Query("content") String content,
                                    @Query("lableId") String lableId);

    @GET("user/note/lookNoteDetails.action")
    Call<ResponseResult> lookNoteDetails();

    @DELETE("user/note/deleteNote.action")
    Call<ResponseResult> userDeleteNote(@Query("noteId") String noteId);

    @POST("user/note/updateNote.action")
    Call<ResponseResult> updateNote(@Query("noteId") String noteId,
                                    @Query("title") String title,
                                    @Query("newContent") String newContent);


}
